package com.lw.user.dal.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.lw.base.utils.BaseEntityUtil;
import com.lw.user.dal.entity.BizUser;
import com.lw.user.dal.mapper.BizUserMapper;

@Repository
public class BizUserDao {
	
	@Autowired
	private BizUserMapper mapper;
	
	public int createUser(BizUser record){
		BaseEntityUtil.bindNewBaseEntity(record);
		return mapper.insert(record);
	}
	
	public BizUser selectByLoginId(String loginId){
		return mapper.selectByLoginId(loginId);
	}
}
